Skip to content

Feat/backend english conversion 20260329#378

Closed
anurag-ay wants to merge 13 commits into666ghj:mainfrom
anurag-ay:feat/backend-english-conversion-20260329
Closed

Feat/backend english conversion 20260329#378
anurag-ay wants to merge 13 commits into666ghj:mainfrom
anurag-ay:feat/backend-english-conversion-20260329

Conversation

@anurag-ay
Copy link
Copy Markdown

Summary

This PR converts the remaining backend Chinese text to English across the report-generation and simulation pipeline.

The goal is to make generated content, prompts, API responses, logs, and runner output consistently English-first, while keeping compatibility where older Chinese-formatted data may still be parsed.

What Changed

  • Translated the report generation stack to English
  • Translated shared backend runtime/config/error messages to English
  • Translated simulation API responses, preparation flow, runner logs, and CLI script output to English
  • Translated ontology generation prompts and simulation/profile generation prompts to English
  • Kept compatibility logic for older Chinese-formatted interview/output parsing, but converted visible literals to Unicode escapes where needed
  • Removed visible Chinese literals from backend/ source files

Main Areas Updated

  • Report generation:

    • backend/app/services/report_agent.py
    • backend/app/services/zep_tools.py
    • backend/app/api/report.py
  • Simulation pipeline:

    • backend/app/api/simulation.py
    • backend/app/services/ontology_generator.py
    • backend/app/services/simulation_config_generator.py
    • backend/app/services/oasis_profile_generator.py
    • backend/app/services/simulation_runner.py
  • Shared backend/runtime cleanup:

    • backend/app/__init__.py
    • backend/app/config.py
    • backend/app/services/graph_builder.py
    • backend/app/services/graph_provider/zep_cloud_provider.py
    • backend/app/services/simulation_ipc.py
    • backend/app/services/simulation_manager.py
    • backend/app/services/zep_entity_reader.py
    • backend/app/services/zep_graph_memory_updater.py
    • backend/app/utils/file_parser.py
    • backend/app/utils/llm_client.py
    • backend/app/utils/retry.py
    • backend/run.py
  • Backend scripts:

    • backend/scripts/run_parallel_simulation.py
    • backend/scripts/run_reddit_simulation.py
    • backend/scripts/run_twitter_simulation.py
    • backend/scripts/test_profile_format.py

Verification

  • rg -n --pcre2 "[\\p{Han}]" backend --glob '!backend/uv.lock' --glob '!backend/.venv/**' --glob '!backend/uploads/**'
    • no matches
  • python3 -m py_compile ...
    • passed for the edited backend files

Notes

  • This PR is primarily a language/prompt/output cleanup and is not intended to change core business logic.
  • Existing saved reports/simulations generated before this change will still remain in their old language until regenerated.

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. enhancement New feature or request labels Mar 28, 2026
@666ghj
Copy link
Copy Markdown
Owner

666ghj commented Apr 2, 2026

The project already has i18n support in place — please refer to [PR #428] for reference.

@666ghj 666ghj closed this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants